﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Future;

namespace Future.FormBase
{
    public interface IDataOperatable
    {
        IButtonInfo[] GetDataOperatableButtons();

        void DoViewContent(IButtonInfo button);     //查看数据
        void DoAdd(IButtonInfo button);
        void DoEdit(IButtonInfo button);
        void DoCancel(IButtonInfo button);
        void DoSave(IButtonInfo button);
        void DoDelete(IButtonInfo button);

        Enums.UpdateType UpdateType { get; }

        bool DataChanged { get; }
    }

    /// <summary>
    /// 支持打印功能的接口
    /// </summary>
    public interface IPrintableForm
    {
        IButtonInfo[] GetPrintableButtons();

        void DoPreview(IButtonInfo button);
        void DoPrint(IButtonInfo button);
    }

    /// <summary>
    /// 支持审核功能的接口
    /// </summary>
    public interface IDataCheck
    {
        IButtonInfo[] GetDataCheckButtons();

        void DoCheckPass(IButtonInfo sender);
        void DoCheckUnPass(IButtonInfo sender);
        void DoCheckRockback(IButtonInfo sender);
    }
}
